package com.waymap.service;

import com.waymap.domain.Locations;
import com.waymap.domain.User;
import org.springframework.http.ResponseEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by tim on 2018/7/18.
 */
public interface UserService {
    List<Map> getLocList(String available);

    Map checkUserInfo(User user);

    /**
     * 修改密码
     * @param password
     * @return
     */
    ResponseEntity<Map> updateUserPassword(String userName,String password,String oldPassword);

    /**
     * 通过token查询用户信息
     * @param token
     * @return
     */
    User getUserInfoByToken(String token);

	ResponseEntity<Map> syncUser(Map userInfo);
}
